<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>	
<table cellspacing="0" cellpadding="0" border="0" class="layui-table">
	<thead>
		<tr>
			<th width="5%"><input type="checkbox" lay-filter="allCheck"
				name="all" lay-skin="primary"></th>
			<th>编号</th>
			<th>用户名</th>
			<th>密码</th>
			<th>状态</th>
			<th width="20%">操作</th>
		</tr>
	</thead>
	<tbody id="tbody-main">
	   <c:choose>
	      <c:when test="${pager.totalCount>0 }">
	        <c:forEach var="m" items="${pager.data }">
		       <tr>
					<td><input type="checkbox" name="ids" value="${m.id }" lay-skin="primary"
						title=""></td>
					<td>${m.id }</td>
					<td>${m.username }</td>
					<td>${m.password }</td>
					<td>${m.status==1?'启动':'禁止' }</td>
					<td>
						<button class="layui-btn layui-btn-sm layui-btn-warm"
							onclick="showUserRole(${m.id})">授权</button>
						<button class="layui-btn layui-btn-sm layui-btn-warm"
							onclick="editor(${m.id})">编辑</button>
						<button class="layui-btn layui-btn-sm layui-btn-danger"
							onclick="deleteOne(${m.id})">删除</button>
					</td>
			</tr>
			</c:forEach>
	      </c:when>
	      <c:otherwise>
	          <tr>
	            <td colspan="6">暂无数据</td>
	          </tr>
	      </c:otherwise>
	   </c:choose> 

	</tbody>
</table>

 <input type="hidden" id="count" name="count" value="${pager.totalCount}" />